<?php

include dirname(dirname(dirname(__FILE__))) . '/include/common.php';

class webServiceUpdateFriendList extends core {

    public function process() {
        $user_id = intval($_POST['user_id']);
        $access_token = $_POST['access_token'];
        $facebook_id = $_POST['facebook_id'];
        exec("php /var/www/html/weddinghelper/webservice/facebook/cronJobUpdateFriendList.php $facebook_id $access_token $user_id > /dev/null  &");     
        $this->_JSONResponse(array('error' => 0, 'msg' => 'Your Facebook friend list has been updated'));
    }

}

$processor = new webServiceUpdateFriendList();
$processor->process();
?>